#!/bin/bash

B="-->"
exec_filename="bench_nymrl"

echo "$B compiling admin program..."
echo "$B don't forget to add the -static flag on Linux!!!"
cd ../
AD=" -Wall   -I/usr/local/include     "
LIB=" -Wall  -L/usr/local/lib  -lsqlite3 -lcurl  "

rm -f $exec_filename 
rm -f *.o

gcc -c bench.c $AD
gcc -c nymrl.c $AD
gcc -c nymrl_conf.c $AD
gcc -c nymrl_sqlite.c $AD
gcc -c nymrl_log.c $AD
gcc -c nymrl_helper.c $AD
gcc -c sqlite_helper.c $AD

gcc -c nymrl_message.c $AD
gcc nymrl_helper.o nymrl_conf.o sqlite_helper.o nymrl_message.o nymrl_log.o nymrl_sqlite.o nymrl.o bench.o \
    -o $exec_filename  $LIB
 
echo "$B running bench"
./$exec_filename 
 


 


